package component
{
	import flash.system.Capabilities;
	
	import mx.containers.TabNavigator;
	import mx.controls.Button;
	import mx.controls.ButtonLabelPlacement;

	public class CustomTabNavigatour extends TabNavigator
	{
		public function CustomTabNavigatour()
		{
			//TODO: implement function
			super();
			     if(Capabilities.screenResolutionX < 1280 || Capabilities.screenResolutionY <= 1000)
                {            
                       this.scaleX = 0.80 ;
                       this.scaleY= 0.80  ;
                } 
		}
		override protected function updateDisplayList(unscaledWidth:Number,
                                                  unscaledHeight:Number):void
          {
          	super.updateDisplayList(unscaledWidth,unscaledHeight);
          	if(tabBar == null)
          	{
          		return;
          	}
          	for each(var but:Button in tabBar.getChildren())
          	{
          		but.labelPlacement = ButtonLabelPlacement.LEFT;
          		but.validateDisplayList();
          		but.validateNow();
          		but.validateProperties();
          		
          	}
          	
          }
		
	}
}